<?php
/**
 * Created by IntelliJ IDEA.
 * User: jimmyhsu
 * Date: 2017/3/30
 * Time: 18:16
 */
setcookie('username', '', time() - 3600);
setcookie('password', '', time() - 3600);
session_start();
session_unset();
session_destroy();
echo "<script>location.href='login.php';</script>";